<template>
  <div id="home">
    <nav class="menu">
      <router-link class="menu-item" to="hotshowwing">
        <span>热映</span>
      </router-link>
      <router-link class="menu-item" to="cinema">
        <span>影院</span>
      </router-link>
      <router-link class="menu-item" to="wait">
        <span>待映</span>
      </router-link>
      <router-link class="menu-item" to="classic">
        <span>经典电影</span>
      </router-link>
    </nav>
     <router-view />
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss">
#home{
  width: 100%;
  height: calc(100% - 100px);
}
.menu{
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #ffffff;
  border-top: 1PX solid #cccccc;
  border-bottom: 1PX solid #cccccc;
  .menu-item{
    flex: 1;
    height: 44px;
    color:  #666666;
    font-size: 15px;
    text-align: center;
    line-height: 40px;
    &.router-link-active{
      font-weight: 1000;
      font-size: 17px;
      color: #333;
      span{
        border-bottom: 2px solid  #f03d37;
      }
    }
    span{
      padding: 3px 0;
    }
  }
}
.page{
  width: 100%;
  position: absolute;
  top: 94px;
  left: 0;
  bottom: 0;
}
</style>